package com.ljkj.blockpay.ui.adapter;

import android.widget.ImageView;

import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.kongzue.baseokhttp.util.JsonMap;
import com.ljkj.blockpay.R;
import com.ljkj.blockpay.basedata.BaseView;
import com.ljkj.blockpay.model.RechargeModel;

import java.util.List;

/**
 * Created by yp on 2022/3/17
 */
public class CommonSelectAdapter extends BaseQuickAdapter<JsonMap, BaseViewHolder> {


    public CommonSelectAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, JsonMap jsonMap) {
            Glide.with(getContext()).load(jsonMap.getString("currencyImg")).into((ImageView) helper.getView(R.id.iv_cuicon));
            helper.setText(R.id.tv_currencyname,jsonMap.getString("currencyName"));
    }

}
